<h1>错误信息</h1>
<pre class="custom-error-message">{{message}}</pre>
<button id="custom-error-back" type="button" class="btn btn-primary">返回上一级</button>
<script>
  document.querySelector('#custom-error-back').onclick = () =>{
    window.history.back();
  }
</script>
<style>
.custom-error-message{
  white-space: pre-line;
}
</style>